package com.example.fireassistant_server.entity;

import lombok.Data;

import javax.persistence.*;

@Entity
@Data
@Table(name = "essential", uniqueConstraints={@UniqueConstraint(columnNames={"keyword"})})
public class Essential extends AbstractEntity {

    @Column(name="keyword")
    private String keyword;

    private String content;

    private String typical;

    @OneToOne
    @JoinColumn(name = "file_id",referencedColumnName = "id")
    private File file;
}
